package com.example.parkingproject.service.serviceImp;


import com.example.parkingproject.jopo.vo.ParkingSpaceListVo;
import com.example.parkingproject.mapper.ParkingSpaceMapper;
import com.example.parkingproject.service.ParkingSpaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ParkingSpaceServiceImp  implements ParkingSpaceService {
    @Autowired
    ParkingSpaceMapper parkingSpaceMapper;

    @Override
    public List<ParkingSpaceListVo> ParkingSpaceListOne() {
        return parkingSpaceMapper.ParkingSpaceListOne();
    }

    @Override
    public Integer getRemainderOne() {
        return parkingSpaceMapper.getRemainderOne();
    }

    @Override
    public List<ParkingSpaceListVo> ParkingSpaceListTow() {
        return parkingSpaceMapper.ParkingSpaceListTow();
    }

    @Override
    public Integer getRemainderTow() {
        return parkingSpaceMapper.getRemainderTow();
    }

    @Override
    public List<ParkingSpaceListVo> ParkingSpaceListThree() {
        return parkingSpaceMapper.ParkingSpaceListThree();
    }

    @Override
    public Integer getRemainderThree() {
        return parkingSpaceMapper.getRemainderThree();
    }

    @Override
    public List<ParkingSpaceListVo> ParkingSpace() {
        return parkingSpaceMapper.ParkingSpace();
    }

    @Override
    public ParkingSpaceListVo getParkingSpace(String locationNumber) {
        return parkingSpaceMapper.getParckingSpace(locationNumber);
    }
}
